package co.fitstart.admin.dao;

import java.util.List;

import com.demo2do.core.persistence.annotation.Dynamic;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;

import co.fitstart.entity.user.User;
import co.fitstart.entity.user.UserAddress;

/**
 * 
 * @author houtao
 *
 */
@Dynamic("hibernate")
public interface UserAddressDao {
    
    /**
     * 
     * @param user
     * @return
     */
    @Query("FROM UserAddress userAddress WHERE userAddress.user = :user")
    public List<UserAddress> list(@Variable("user") User user);
    
}
